package org.boulderfoodrescue.webapp.client.customtable;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.cellview.client.CellTable;
import com.google.gwt.user.cellview.client.SimplePager;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class CustomCellTableView<T> extends Composite{

	private static CustomCellTableViewUiBinder uiBinder = GWT
			.create(CustomCellTableViewUiBinder.class);

	@SuppressWarnings("rawtypes")
	interface CustomCellTableViewUiBinder extends
			UiBinder<Widget, CustomCellTableView> {
	}

	public CustomCellTableView(CellTable<T> cellTable, SimplePager pager) {
		this.cellTable = cellTable;
		this.pager = pager;
		initWidget(uiBinder.createAndBindUi(this));
	}
	
	@UiField(provided = true)
	CellTable<T> cellTable;
	@UiField(provided = true)
	SimplePager pager;
}
